import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import axios from 'axios'
import router from './router'
import store from './store'
import dataV from '@jiaminghi/data-view';

// import * as echarts from 'echarts'
// 引入全局css
import './assets/scss/style.scss';
// 引入图表（所有图标见 icon 目录下的 demo_index.html）
import './assets/icon/iconfont.css'
// 引入 全局注册组件
import PublicComponent from '@/components/componentInstall';

const app = createApp(App)
app.config.globalProperties.$axios = axios
app.config.warnHandler = () => {}
app.config.warnHandler = (msg, instance, trace) => {
    // 过滤掉包含 [ECharts] DEPRECATED: 的警告信息
    if (!msg.includes('[ECharts] DEPRECATED:')) {
      //console.warn(msg, instance, trace);
    }
  };
// app.component('e-echarts',echarts)
app.use(PublicComponent)
app.use(dataV)
app.use(store)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
